<template>
  <div>
    <div ref="Mybox">内容</div>
    <!-- <MySon ref="Mydomel" /> -->

    <button @click="modify">修改内容</button>
  </div>
</template>

<script>
import MySon from "./components/MySon.vue";
export default {
  components: {
    MySon,
  },
  data() {
    return {

    };
  },
  methods: {
    modify(){
      this.$refs.Mybox.innerText = '今天是个好日子'
    },
    // work() {
    //   // console.log(this.$refs.Mybox);
    //   // this.$refs.Mybox.innerText = '我要写代码'
    //   this.$refs.Mydomel.myList();
    // },
  },
};
</script>

<style scoped></style>
